curl -X POST 'https://api.example.com/resources' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"resourceTypeId": "resource_type_document",
"scopeId": "scope_engineering",
"externalResourceId": "doc-123",
"displayName": "Project Roadmap"
}'
{
"id": "resource_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"resourceTypeId": "resource_type_document",
"scopeId": "scope_engineering",
"externalResourceId": "doc-123",
"displayName": "Project Roadmap",
"createdAt": "2024-01-15T10:30:00Z",
"createdBy": "system"
}
Create a new resource
curl -X POST 'https://api.example.com/resources' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"resourceTypeId": "resource_type_document",
"scopeId": "scope_engineering",
"externalResourceId": "doc-123",
"displayName": "Project Roadmap"
}'
{
"id": "resource_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"resourceTypeId": "resource_type_document",
"scopeId": "scope_engineering",
"externalResourceId": "doc-123",
"displayName": "Project Roadmap",
"createdAt": "2024-01-15T10:30:00Z",
"createdBy": "system"
}
resource_{uuidv7}curl -X POST 'https://api.example.com/resources' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"resourceTypeId": "resource_type_document",
"scopeId": "scope_engineering",
"externalResourceId": "doc-123",
"displayName": "Project Roadmap"
}'
{
"id": "resource_0190a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b",
"resourceTypeId": "resource_type_document",
"scopeId": "scope_engineering",
"externalResourceId": "doc-123",
"displayName": "Project Roadmap",
"createdAt": "2024-01-15T10:30:00Z",
"createdBy": "system"
}
Was this page helpful?