Upload application avatar
curl --request POST \
--url https://cloud.laravel.com/api/applications/{application}/avatar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form avatar='@example-file'{
"data": {
"id": "<string>",
"type": "applications",
"attributes": {
"name": "<string>",
"slug": "<string>",
"slack_channel": "<string>",
"avatar_url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"repository": {
"full_name": "<string>",
"default_branch": "<string>"
}
},
"relationships": {
"repository": {
"data": {
"type": "repositories",
"id": "<string>"
}
},
"organization": {
"data": {
"type": "organizations",
"id": "<string>"
}
},
"environments": {
"data": [
{
"type": "environments",
"id": "<string>"
}
]
},
"deployments": {
"data": [
{
"type": "deployments",
"id": "<string>"
}
]
},
"defaultEnvironment": {
"data": {
"type": "environments",
"id": "<string>"
}
}
}
},
"included": [
{
"id": "<string>",
"type": "repositories",
"attributes": {
"name": "<string>"
}
}
]
}Applications
Upload application avatar
Upload or replace the avatar for an application.
POST
/
applications
/
{application}
/
avatar
Upload application avatar
curl --request POST \
--url https://cloud.laravel.com/api/applications/{application}/avatar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form avatar='@example-file'{
"data": {
"id": "<string>",
"type": "applications",
"attributes": {
"name": "<string>",
"slug": "<string>",
"slack_channel": "<string>",
"avatar_url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"repository": {
"full_name": "<string>",
"default_branch": "<string>"
}
},
"relationships": {
"repository": {
"data": {
"type": "repositories",
"id": "<string>"
}
},
"organization": {
"data": {
"type": "organizations",
"id": "<string>"
}
},
"environments": {
"data": [
{
"type": "environments",
"id": "<string>"
}
]
},
"deployments": {
"data": [
{
"type": "deployments",
"id": "<string>"
}
]
},
"defaultEnvironment": {
"data": {
"type": "environments",
"id": "<string>"
}
}
}
},
"included": [
{
"id": "<string>",
"type": "repositories",
"attributes": {
"name": "<string>"
}
}
]
}Authorizations
The Bearer Token generated on the Cloud UI.
Path Parameters
The application identifier
Body
multipart/form-data
Maximum string length:
3072Response
ApplicationResource
Was this page helpful?
⌘I

