Add an agent requirement to the matching build configuration.
POST {{baseUrl}}/app/rest/buildTypes/:btLocator/agent-requirements?fields=<string>
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
fields | string |
Request Body
{"id"=>"<string>", "name"=>"<string>", "type"=>"<string>", "disabled"=>"<boolean>", "inherited"=>"<boolean>", "href"=>"<string>", "properties"=>{"count"=>"<integer>", "href"=>"<string>", "property"=>[{"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "inherited"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "value"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "inherited"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"id":"\u003cstring\u003e","name":"\u003cstring\u003e","type":"\u003cstring\u003e","disabled":"\u003cboolean\u003e","inherited":"\u003cboolean\u003e","href":"\u003cstring\u003e","properties":{"count":"\u003cinteger\u003e","href":"\u003cstring\u003e","property":[{"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"inherited":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"inherited":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}]}}