Read project resource source

http
GET /projects/{project_reference}/resources/{resource_id}/source

Read the editable source behind one project resource before changing it; returns the project resource with its source text, edit mode and the reasons it can only be edited as source. Requires project.resources.read.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
resource_idpathYesResource ID from list_project_resources
source_target_kindquery
target_branch_idquery

Responses

StatusDescription
200Project resource source document
400Bad request
401Unauthorized
403Forbidden
404Not found
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.