APG PayAPG Paydocs

Parties

Update organisation

PATCH/organisations/{organisationId}

Replace the organisation's contact. It is replaced whole, so a field left out is cleared.

Permissions

Required permission
organisations:update

Requires the `update` action on `organisations` for the supplied runtime context

Path parameters

organisationIdstring
required

Request body

This body is a tagged shape: type is always "OrgUpdateContactDetails". Send it; more variants can be added, and a caller that switches on it keeps working when they are.

Discriminated by type
type = "OrgUpdateContactDetails"

How a business, or one person's ownership of it, is reached. Every field is optional.

curl -X PATCH https://api.tst.au.apgpay.dev/organisations/{organisationId} \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "OrgUpdateContactDetails",
  "contactDetails": {
    "type": "OrgContactDetailsAttributes",
    "emailAddress": "ada@example.com",
    "phoneNumber": "+61400000000",
    "address": {
      "type": "MchtAddressAttributes",
      "unitNumber": "string",
      "streetNumber": "string",
      "streetName": "Ada Lovelace",
      "streetType": "string",
      "suburb": "string",
      "city": "string",
      "state": "string",
      "postalCode": "3000",
      "country": "AU"
    }
  }
}'

Responses

The response is a tagged shape: type is always "OrgUpdateRspAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "OrgUpdateRspAttributes"

The resource as it stands after the change.

Example
{
  "type": "OrgUpdateRspAttributes",
  "updated": {
    "type": "OrgViewAttributes",
    "organisationId": "org_9f2Kd8QpLzXw",
    "registeredName": "Ada Lovelace",
    "businessType": "Company",
    "companyType": "string",
    "taxIdentity": {
      "type": "OrgTaxIdentityAttributes",
      "businessRegistrationNumber": "string",
      "companyRegistrationNumber": "string",
      "taxRegistrationNumber": "string"
    },
    "country": "AU",
    "registeredAddress": {
      "type": "MchtAddressAttributes",
      "unitNumber": "string",
      "streetNumber": "string",
      "streetName": "Ada Lovelace",
      "streetType": "string",
      "suburb": "string",
      "city": "string",
      "state": "string",
      "postalCode": "3000",
      "country": "AU"
    },
    "contactDetails": {
      "type": "OrgContactDetailsAttributes",
      "emailAddress": "ada@example.com",
      "phoneNumber": "+61400000000",
      "address": {
        "type": "MchtAddressAttributes",
        "unitNumber": "string",
        "streetNumber": "string",
        "streetName": "Ada Lovelace",
        "streetType": "string",
        "suburb": "string",
        "city": "string",
        "state": "string",
        "postalCode": "3000",
        "country": "AU"
      }
    },
    "owners": [
      {
        "type": "OrgOwnerOrganisation",
        "organisationId": "org_9f2Kd8QpLzXw"
      }
    ],
    "documents": [
      {
        "type": "OrgDocumentAttributes",
        "kind": "TrustDeed",
        "fileId": "lfile_9f2Kd8QpLzXw"
      }
    ],
    "createdAt": "2026-08-19T04:21:07Z",
    "updatedAt": "2026-08-19T04:21:07Z"
  }
}

Error responses