Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Request body example

{
  "download_type": ".png",
  "picture": {
    "template_id": 53,
    "s3_key": "s3_key",
    "format_type": "png"
  }
}

Success response body

{
  "id": 1,
  "link_for_sharing": "https://gipper-college-logos-development.s3.amazonaws.com/JbISwxDSMzpSfZWpqptQ4bGt.png"
}

Error response body

{
  "workspace": [
    "have maximum pictures"
  ]
}

Params

Param name Description
download_type
optional

Validations:

  • Must be a String

picture
required

Validations:

  • Must be a Hash

picture[template_id]
required

Validations:

  • Must be a Integer

picture[preset_id]
optional

Validations:

  • Must be a Integer

picture[s3_key]
required

Validations:

  • Must be a String

picture[format_type]
required

Validations:

  • Must be a String