Page Properties | ||||
---|---|---|---|---|
| ||||
|
Apps API V1
Create / Update Object
Code Block | ||
---|---|---|
| ||
curl -X POST -H 'Content-Type: application/json' \
-u "user:password" \
-d @payload.json \
{BASE_URL}/Person/1f7d3902-d5a7-48cf-9af3-903676447a36 |
Code Block | ||
---|---|---|
| ||
{
"attributes": {
"firstname": "John",
"surname": "Doe",
"birthyear": 1985
}
} |
HTTP Request
Code Block |
---|
POST {BASE_URL}/{objectType}/{objectId} |
This endpoint creates an object or updates an existing object. If attributes are omitted, the existing attributes are left as-is (in the case of an update).
Fields
Field | Description |
---|---|
objectType | The object type reflecting a persistent object in Helium |
objectId | The existing or the newly chosen object UUID (v4) |
attributes | Attributes within the object that needs to be set |
Get All Objects
Code Block |
---|
curl -X GET -u "user:password" {BASE_URL}/Person |