Magic Account Apps

Updates an Account App

patch/accounts/{account_id}/magic/apps/{account_app_id}

Request

  • Base URL: https://api.cloudflare.com/client/v4
  • URL: https://api.cloudflare.com/client/v4/accounts/{account_id}/magic/apps/{account_app_id}
  • Auth: API key in header X-Auth-Email and API key in header X-Auth-Key and HTTP bearer

Path parameters

account_idstring required

Identifier

Example:023e105f4ecef8ad9ca31a8372d0c353
account_app_idstring required

Identifier

Example:023e105f4ecef8ad9ca31a8372d0c353

Request body

OR
OR
OR
OR

Example request

{
  "hostnames": [
    "auth.cloudflare.com"
  ],
  "ip_subnets": [
    "1.1.1.1/32"
  ],
  "name": "Cloudflare Dashboard",
  "source_subnets": [
    "1.1.1.1/32"
  ],
  "type": "Development"
}

Response

Update App response

successtrue required

Whether the API call was successful

Example response

{
  "errors": [],
  "messages": [],
  "result": {
    "account_app_id": "ac60d3d0435248289d446cedd870bcf4",
    "hostnames": [
      "auth.cloudflare.com"
    ],
    "ip_subnets": [
      "1.1.1.1/32"
    ],
    "name": "Cloudflare Dashboard",
    "source_subnets": [
      "1.1.1.1/32"
    ],
    "type": "Development"
  },
  "success": true
}

Changes

    • ▲

      the request property type changed from no type to object

    • ▲

      the request property type changed from no type to object

    • ▲

      the request property type changed from no type to object

    • ▲

      the request property type changed from no type to object

    • ▲

      the request property type changed from no type to object

    • ▲

      the // request property type changed from no type to string

    • ▲

      the // request property type changed from no type to string

    • ▲

      the response's property type changed from no type to object for status

    • ▲

      the //// response's property type changed from no type to string for status

    • ▲

      the //// response's property type changed from no type to string for status