Update Xray Settings By ProjectID
11 min
this endpoint updates the xray settings associated with a specified project the user must have access to the project and be part of the associated company the updated settings will include the xray project key and configuration endpoint information url https //testinium io/testinium restapi/api/projects/{projectid}/plugins/xray method put authentication required ( bearer token ) path parameters parameter type required description projectid long yes the unique id of the project to update xray settings for query parameters this endpoint does not accept any query parameters request body the request body must include the xray settings to be updated example request body { "project" \[ { "label" "xray label1", "value" "xray value1", "selected" true } ] } response the response includes the updated xray project details for the specified project example response { "project" \[ { "label" "xray label1", "value" "xray value1", "selected" true }, { "label" "xray label2", "value" "xray value2", "selected" false } ] } error codes http code error code description 400 invalid project id the provided project id is invalid 403 access denied the user does not have access to the specified project 404 project not found the project with the specified id does not exist 500 internal server error an unexpected error occurred while updating xray settings example request curl location request put "https //testinium io/testinium restapi/api/projects/{projectid}/plugins/xray" \\ \ header 'authorization bearer \<your access token>' \\ \ header 'content type application/json' \\ \ data raw '{ "project" \[ { "label" "xray label1", "value" "xray value1", "selected" true } ] }'