ReferenceAdsAdsCreativeAssets
Create a private creative-asset upload
Loading the API reference…
A practice API key or an OAuth access token, both presented as Authorization: Bearer <token>. The token itself names the practice, so no organization header is needed.
In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
At most 16 megapixels
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/ads/creative/assets" \ -H "Content-Type: application/json" \ -d '{ "filename": "string", "mime": "image/jpeg", "bytes": 10240, "width": 250, "height": 250, "sha256": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "publicId": "f72dfe8e-6cfd-43c2-b1cb-95adbf313789", "mime": "string", "bytes": -9007199254740991, "width": -9007199254740991, "height": -9007199254740991, "sha256": "string", "source": "generated", "aiGenerated": true, "status": "uploading", "createdById": "string", "expiresAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}1 <= length <= 255Value in
10240 <= value <= 5242880250 <= value <= 4096250 <= value <= 4096^[0-9a-f]{64}$