Get Owned Field
GET /admin/customfield/ownedFieldBundle/{bundleName}/{fieldName}
Get owned field
GET /rest/admin/customfield/ownedFieldBundle/{bundleName}/{fieldName}
Parameters:
Name | Type | Description |
---|---|---|
bundleName | string | Name of a bundle to get an owned field from. |
fieldName | string | Name of an owned field to get. |
Sample
Request
GET https://example.com/youtrack/rest/admin/customfield/ownedFieldBundle/New%20bundle%20name/Element%20name
Cookie: $Version=0; JSESSIONID=8dmapdeyqjdkeab2l6yhf4cu; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/
Response
HTTP/1.1 404 Not Found
Content-Type: application/xml;charset=UTF-8
Content-Length: 109
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error>Owned field [ Element name ] not found.</error>
Sample 2
Request
GET https://example.com/youtrack/rest/admin/customfield/ownedFieldBundle/New%20bundle%20name/New%20element%20name
Cookie: $Version=0; JSESSIONID=8dmapdeyqjdkeab2l6yhf4cu; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=NDgxMzQ5NGQxMzdlMTYzMWJiYTMwMWQ1YWNhYjZlN2JiN2FhNzRjZTExODVkNDU2NTY1ZWY1MWQ3Mzc2NzdiMjpyb290; $Path=/
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=UTF-8
Content-Length: 147
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ownedField description="new element description" owner="beto">New element name</ownedField>
Last modified: 1 July 2020