[{"label":"Latest (0.1.1)","version":"latest"}]
cric-r1

Put Info Producer

Description

Create or update one producer, allowing the producer to announce to the R1 environment that it is capable of producing one or more data-types and is able to accept jobs for those types.

Request

Request

URL

URL


put
https://{api_host}/dms/data-producer/v0alpha1/info-producers/{info_producer_id}
Copy

Path Parameters

Path Parameters

string
info_producer_id Required

The identifier of one producer.


Request Body

Request Body

ProducerInfo of mimetype application/json Required
{
	"info_job_callback_url": "string",
	"supported_info_types": [
		"pmhistory"
	]
}
string
info_job_callback_url Required

The callback URL by which the DMS will notify the producer of a new job.


array of string
supported_info_types Required

A list of those data types that this producer plans to produce.

Response

Response

201 Created

Successfully updated one producer.

Errors

Errors

400

Unable to create or update producer: bad request body.

Code Samples

Code Samples

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{"info_job_callback_url":"string","supported_info_types":["pmhistory"]}' https://{api_host}/dms/data-producer/v0alpha1/info-producers/{info_producer_id}


[{"label":"Latest (0.1.1)","version":"latest"}]
cric-r1
Feedback

Was this page helpful?