The workflow.metadata stream defines the current workflow state in JSON format. To modify the workflow state, you will need to retrieve this datastream and modify it's values. A sample of the datastream is below
{
"id": "dataset",
"step": "metadata-review",
"pageTitle": "Metadata Record",
"label": "Metadata Review"
}
Request
curl -X GET -H "Content-Type: application/octet-stream" -H "Authorization: Bearer xxxxxxxxxxx" "http://localhost:9000/redbox/api/v1/datastream/e0220ec80b52e04da72813801b934da8?datastreamId=workflow.metadata"
Response
{
"id": "dataset",
"step": "investigation",
"pageTitle": "Metadata Record",
"label": "Investigation"
}
Request
curl -X POST -H "Authorization: Bearer xxxxxxxxxxxxx" -H "Content-Type: multipart/form-data" -F "content=@workflow.metadata" "http://localhost:9000/redbox/api/v1/datastream/e0220ec80b52e04da72813801b934da8?datastreamId=workflow.metadata"
Response
{
"code": "200",
"oid": "e0220ec80b52e04da72813801b934da8"
}