Sets a JSON-schema for a specified schema identifier.
cURL
curl --request POST \ --url https://server.ownid.com/{appId}/schema \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "type": "object", "properties": { "firstName": { "type": "string" }, "lastName": { "type": "string" } } }'
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully set the schema.
Was this page helpful?