---
title: "Accept or decline an invite/request"
method: PATCH
path: "/businesses/invites"
tags: ["business_access_invite"]
---

# Accept or decline an invite/request

`PATCH /businesses/invites`

Accept or decline invites or requests.

## Request body

- AuthRespondInvitesBody — An object with a list of all the invites the user would like to respond to and the action to take.
  - `invites` AuthRespondInvitesBodyItem[], required
    - `action` AuthRespondInviteAction, required
      - `accept_invite` boolean, required — Whether the invite/request is accepted.
      - `asset_id_to_permissions` AssetIdToPermissions — An object mapping asset ids to lists of business permissions. This can be used to setting/requesting permissions on various assets. If accepting an invite or request, this object would be used to grant asset permissions to the member or partner.
    - `invite_id` string, required — Unique identifier of an invite.

## Response `200`

The request has succeeded.

- RespondToInvitesResponseArray
  - `items` RespondToInviteResultItem[] — List of invite/request accept/decline status. If there is an error, an exception object will be returned. If the invite/request was successfully accepted/declined, an invite object will be returned.
    - `exception` InviteExceptionResponse, nullable — An exception object if there is an error performing the action. Will only be provided if there is an error.
      - `code` integer — Error code associated with the error in performing the action on the invite/request.
      - `invite_or_request_id` string, nullable — Unique identifier of the invite/request.
      - `message` string — Error message associated with the error in performing the action on the invite/request.
      - `users_or_partner_ids` string[] — A list of users' usernames or emails OR a list of partner ids that caused the error.
    - `invite` BaseInviteDataResponse, nullable — Common invite/request data returned by the business access endpoints.
      - `id` string — Unique identifier of the invite/request.
      - `invite_data` InviteDataResponse — Metadata for the invite/request.
        - `invite_expiration` integer — The date and time when the invite/request will expire. Returned in milliseconds.
        - `invite_status` string — The current status of the invite. The invite can be in one of the following states PENDING, ACCEPTED, DECLINED, CANCELLED, EXPIRED.
        - `invite_type` string — The type of invite. - 'MEMBER_INVITE' is to invite a member to access your business assets. - 'PARTNER_INVITE' is to invite a partner to access your business assets. - 'PARTNER_REQUEST' is to request access a partner's business assets.
        - `last_updated_time` integer — The date and time the invite/request was last updated. Returned in milliseconds.
        - `sent_at` integer — The date and time the invite/request was sent/created. Returned in milliseconds.
      - `is_received_invite` boolean — Indicates whether the invite/request was received.
      - `user` BusinessAccessUserSummary — Metadata of the member/partner that has access to the asset.
        - `email` string, nullable — Email of the business member/partner.
        - `id` string, nullable — Unique identifier of the business member/partner.
        - `username` string, nullable — Username of the business member/partner.

## Other responses

- `400` — The request could not be understood by the server due to unexpected data.
- `401` — Authentication is required and has either failed or not been provided.
- `403` — The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource.
- `404` — The requested resource could not be found on this server.
- `429` — The user has sent too many requests in a given amount of time and is being rate limited.
- `default` — An unexpected error response.

---

[API](https://skmtc.net/pinterest/apis/pinterest-rest-api.md) · [All operations](https://skmtc.net/pinterest/apis/pinterest-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pinterest/pinterest-rest-api/revisions/b698c180678a/schema)
