Library

Add to a Brand Library

Save a file in the brand's asset collection. Identical file contents return the existing item. Images are up to 10 MiB; video and audio (beta) up to 100 MiB.

post/brands/{id}/library

Request

  • Base URL
    https://www.rainbrand.com/api/v1
  • URL
    https://www.rainbrand.com/api/v1/brands/{id}/library
  • Auth
    • API key in header x-api-key
    • or HTTP bearer
    • or OAuth 2
      Authorization code: https://www.rainbrand.com/api/auth/oauth2/authorize
      Token URL: https://www.rainbrand.com/api/auth/oauth2/token

Path parameters

idstring uuid required

Brand ID

Example:e6220a5e-4a68-4d39-8bb9-5105e9a3a164

Request body

Example request

{
  "source": {
    "type": "upload",
    "uploadId": "3f2b8c1e-9a4d-4e7b-8c2f-1d5e6a7b8c9d"
  }
}

Response

OK

Changes

No recorded changes to this operation across all 2 revisions of this API.