Update A Property Of An Entity

To update the property of an existing entity, we need to make the following HTTP request
put
/api/v1/{entity-type}/{id}/{entity-property}/{property-id}
Update a property which is already added to entity
Parameters
Path
entity-type*
Type of entity to update
id*
id of the entity to update
entity-property*
entity Property which to be updated in already existing entity
property-id*
entity property osid which is to be updated in already existing property in entity
Header
content-type*
Set to application/json
authorization
Set to Bearer {access-token} if roles in Schema is not anonymous. Else token can be empty
Responses
200: OK

Usage

cURL

curl --location \
--request 'POST' \
--header 'content-type: application/json' \
--header 'authorization: bearer {access-token}' \
--data-raw '{
"city": "Surat"
}' \
'{registry-url}/api/v1/{entity-type}/{id}/{entity-property}/{property-id}'

HTTPie

printf '{
"city": "Surat"
}' | http POST \
'/api/v1/{entity-type}/{id}/{entity-property}/{property-id}' \
'content-type: application/json' \
'authorization: Bearer {access-token}'
{registry-url} is usually http://localhost:{port}. The port can be found under the registry section in the docker-compose.yml file and is usually 8081.