Check if permissions defined by a devcontainer have been accepted by the authenticated user
/repos/{owner}/{repo}/codespaces/permissions_check Checks whether the permissions defined by a given devcontainer configuration have been accepted by the authenticated user.
OAuth app tokens and personal access tokens (classic) need the codespace scope to use this endpoint.
Parameters
path Path Parameters
| Name | Type |
|---|---|
owner
required
The account owner of the repository. The name is not case sensitive. | string |
repo
required
The name of the repository without the | string |
query Query Parameters
| Name | Type |
|---|---|
ref
required
The git reference that points to the location of the devcontainer configuration to use for the permission check. The value of | string |
devcontainer_path
required
Path to the devcontainer.json configuration to use for the permission check. | string |
Responses
Response when the permission check is successful
accepted: boolean;
}
Client Errors
Requires authentication
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
Forbidden
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
Resource not found
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
Validation failed, or the endpoint has been spammed.
message: string;
documentation_url: string;
errors?: {
resource?: string;
field?: string;
message?: string;
code: string;
index?: number;
value?: string[] | string | number | null;
}[];
}
Server Errors
Service unavailable