Content Operations
Push Value
Push a value to an array at a specified path within a project's content.
This endpoint allows you to push a value to the end of an array at a specified path within a project's content.
Endpoint
POST https://rowlogy.com/api/:username/:projectSlug/content/push
Path Parameters
| Parameter | Type | Description |
|---|---|---|
username | string | The username of the project owner. Must start with "@". |
projectSlug | string | The project ID of the project. |
Request Body
The request body should be a JSON object with the following properties:
| Parameter | Type | Description |
|---|---|---|
path | string | The dot-separated path to the array (e.g., data.items). |
value | any | The value to push to the array. |
{
"path": "data.items",
"value": {
"id": 3,
"name": "New Item"
}
}Authentication
You can authenticate your requests using one of the following methods:
Session Token
Include your session token in the Authorization header:
Authorization: Bearer <YOUR_SESSION_TOKEN>
API Key Authentication
Alternatively, you can authenticate using an API key. Include your API key in the Authorization header:
Authorization: Bearer <YOUR_API_KEY>
For more details on generating and managing API keys, see the Using API Keys guide.
Response
Success (200 OK)
{
"message": "Object pushed successfully"
}Error Responses
- 400 Bad Request:
- If
pathis missing or not a string. - If the target path is not an array.
- If
- 401 Unauthorized:
- If no authentication (user session or API key) is provided.
- If the provided API key is invalid or expired.
- 403 Forbidden:
- If the authenticated user does not have access to the project.
- If the API key used does not have the required permissions for this project.
- 404 Not Found: If the project or user does not exist.
- 500 Internal Server Error: For any server-side issues.