Skip to content

Upload a field option image

Request

Security
bearerToken
Bodyapplication/jsonrequired
accountIdstringrequired

The ID of the Account the FieldOption belongs to

Example:"cfb665ca-ce35-4418-b9d5-70ee815db4bd"
fieldIdstringrequired

The ID of the Field the FieldOption belongs to

Example:"7756d388-110c-4712-b350-0b2b48e156c1"
fieldOptionIdstringrequired

The ID of the FieldOption you would like to upload an image for

Example:"1fc6d6c3-c42d-48ue2-b0db-5d680a58ca52"
curl -i -X POST \
  https://api-v2.dash.app/field-option-image-uploads \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "accountId": "cfb665ca-ce35-4418-b9d5-70ee815db4bd",
    "fieldId": "7756d388-110c-4712-b350-0b2b48e156c1",
    "fieldOptionId": "1fc6d6c3-c42d-48e2-b0db-5d680a58ca52"
  }'

Responses

Success

Bodyapplication/json
urlstringrequired

The URL that can be used to upload an image

Example:"https://example.com"
Response
{ "url": "https://example.com" }