Skip to main content
PATCH
/
applications
/
{application}
Update application
curl --request PATCH \
  --url https://app.laravel.cloud/api/applications/{application} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'name=<string>' \
  --form 'slug=<string>' \
  --form 'default_environment_id=<string>' \
  --form 'repository=<string>' \
  --form 'slack_channel=<string>' \
  --form avatar=@example-file
{
  "data": {
    "id": "<string>",
    "type": "applications",
    "attributes": {
      "name": "<string>",
      "slug": "<string>",
      "region": "us-east-2",
      "tenancy_type": "shared",
      "slack_channel": "<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>"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

The Bearer Token generated on the Cloud UI.

Path Parameters

application
string
required

The application identifier

Body

multipart/form-data
name
string
Required string length: 3 - 40
avatar
file | null
slug
string
Minimum length: 3
default_environment_id
string
repository
string
slack_channel
string | null

Response

ApplicationResource

data
object
required