Advanced API Documentation
Campaigns
Contract Documents
Dashboard
Invoices
Invoice Templates
Payment Batches
Payout Methods
Referrals
Assets
Update asset
Update an asset
HTTP Request
PUT https://v2.firstpromoter.com/api/v2/company/assets/{id}
PUT
/
assets
/
{id}
curl --request PUT \
--url https://v2.firstpromoter.com/api/v2/company/assets/{id} \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"asset_type": "image",
"url": "<string>",
"category_id": 123,
"allowed_campaign_ids": [
123
],
"content": "<string>",
"landing_page_url": "<string>"
}'
{
"id": 123,
"name": "<string>",
"allowed_campaign_ids": [
123
],
"details": {
"file_format": "<string>",
"file_size": 123,
"image_size": {
"width": 123,
"height": 123
}
},
"content": "<string>",
"landing_page_url": "<string>",
"asset_type": "image",
"url": "<string>",
"thumbnail_url": "<string>",
"uploading": true,
"category": {
"id": 123,
"name": "<string>",
"position": 123
},
"allowed_campaigns": [
{
"id": 123,
"name": "<string>",
"color": "<string>"
}
]
}
Authorizations
Access token passed as a Bearer token in the Authorization header
Headers
Account identifier that specifies which account is making the request
Example:
"acc_123456"
Path Parameters
ID of the asset to be updated
Body
application/json
Response
200
application/json
Asset updated successfully
The response is of type object
.
curl --request PUT \
--url https://v2.firstpromoter.com/api/v2/company/assets/{id} \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"asset_type": "image",
"url": "<string>",
"category_id": 123,
"allowed_campaign_ids": [
123
],
"content": "<string>",
"landing_page_url": "<string>"
}'
{
"id": 123,
"name": "<string>",
"allowed_campaign_ids": [
123
],
"details": {
"file_format": "<string>",
"file_size": 123,
"image_size": {
"width": 123,
"height": 123
}
},
"content": "<string>",
"landing_page_url": "<string>",
"asset_type": "image",
"url": "<string>",
"thumbnail_url": "<string>",
"uploading": true,
"category": {
"id": 123,
"name": "<string>",
"position": 123
},
"allowed_campaigns": [
{
"id": 123,
"name": "<string>",
"color": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.