Project
Retrieves information about a specific project.
This endpoint is useful for obtaining details about a particular project, such as its name, supported languages, and defined content models.
Endpoint
curl https://api.contentisland.net/api/1.0/project --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Response
The response is a JSON object containing project information. The object has the following structure:
interface Project { id: string; name: string; languages: string[]; contentTypes: { id: string; name: string }[];}id: The project ID.name: The name of the project.languages: A list of supported languages for the project.contentTypes: A list of defined models in the project. Each model has anidand aname.
Example:
{ "id": "1", "name": "My project", "languages": ["es", "en"], "contentTypes": [ { "id": "100", "name": "post" } ]}Status Codes
| Code | Description |
|---|---|
| 200 | The request was successfully processed and the project information was returned. |
| 401 | Unauthorized. The access token is invalid or has expired. |
| 500 | Internal server error. An error occurred while processing the request. |