# Store Image Meta Data

API call format

POST /images/meta           ``   //Use token autorization
{
  "meta": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  }
}
POST /images/private/meta }      //Use Api Key
{
  "meta": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  }
}

Description

List all images

Precondition:

  • Authorization token/Api key is needed.
  • Mandatory elements:
    • key:value - valid key:value pair metadata

Postcondition

  • On success response code should be 200
  • On success message for successful creation and image guid are returned.
  • On failure an error will be returned with the right error code and description.

Example:

[Request] POST https://<base_api_url>/images/meta              
{
  "meta": {
    "test": "test"
  }
}
[Request] POST https://<base_api_url>/images/private/meta                
{
  "meta": {
    "test": "test"
  }
}
[Request Headers] {"Content-Type":"application/json","Accept":"application/json","Authorization":"<IdToken>"} //Use token autorization
[Request Headers] {"Content-Type":"application/json","Accept":"application/json","X-Api-Key":"<api_key>"}     //Use Api Key

[Response] 201
[Response Headers] {"Content-Type":["application/json"],"Content-Length":["..."],"Connection":["keep-alive"],"Date":["..... GMT"],"x-amzn-RequestId":["....."],....]}
[Response] 
{
	"status": true,
	"data": "Item was created successfully",
	"guid": "<image_guid>"
}