/api/dataSets/:id/attributes/:code/:value/image

Edits image in appearance settings for given data set ID, attribute code and attribute value.

Resource Information

Request Parameters

Parameters

Detail

Example
idData Set identifier. You can find the ID in the response to /api/dataSets.123
codeAttribute code. You can find the code in the response to /api/dataSets/:id.L_STATE
valueAttribute value (encoded). You can find the value in the response to /api/dataSets/:id/attributes/:code/values.North%20Carolina

file

Image file.

 

Sample Request / Response

Using curl:

curl POST -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -H "Content-Type: multipart/form-data" -F "file=@myImage.png" "https://service.belladati.com/api/dataSets/123/attributes/L_STATE/North%20Carolina/image"

When the form has been submitted successfully, the server replies with an HTTP status code of 200 and an empty body.

 

  • No labels