Authorization: Bearer ********************{
"data": {
"attributes": {
"name": "My new awesome bolt",
"cmsId": 5006,
"location": "Oslo"
}
}
}curl --location --request POST 'https://api.servebolt.io/v1/bolts?bolt-only' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"attributes": {
"name": "My new awesome bolt",
"cmsId": 5006,
"location": "Oslo"
}
}
}'{
"errors": [
{
"title": "Invalid input",
"detail": "The data.attributes.name field is required.",
"code": 422,
"source": {
"pointer": "/data/attributes/name"
}
},
{
"title": "Invalid input",
"detail": "The data.attributes.cms id field is required.",
"code": 422,
"source": {
"pointer": "/data/attributes/cmsId"
}
},
{
"title": "Invalid input",
"detail": "The data.attributes.location field is required.",
"code": 422,
"source": {
"pointer": "/data/attributes/location"
}
}
]
}