Examples

POST /api/locations/447626484
{
  "location": {
    "description": "鶷𧰁홾힑𫍈襛𡮉ˈ𤟷𤻘欫𠎒饐땸𠄥䓵𧅃𛲇𫼐罼𫚡𫵾𩐽씼𐃴𘨋娛注𡍨𗨶횚𧸭䶏쑍ꌞ𪣰稗襅椨呔𗟺𒆯𫟼긼𩠺㽘𬸋𗒜𗂛𤣁폩𨥎𫜢𫙁憲𨡠獩𧲢𨜷㽪蘺뀑𤠽𝘵𪍦𬈎𩵪𫾰𥒭晳𣲧𪂽𡒲𢖥𨤛𗼊鑔𘈌𐑢𡎠𣇻桐𥎜𥺮𨼯돱𤢖뗖ᅌ蛧𨹳吡佔𪭨𡩲𧰐𠜞𪜁𝓖𫢹𩥩𩔣씵𢞊𐭣큂絠湜𦺙𠶽㑡㝚𠭰撓𢍱𪘑츣𗬩𫫛𫧚𤠜뙔𩬴礞ꡜ𣏉㖋쑫𥓀𢘇𠱤𡖵㙤𦵻𬙶𝜄惾𩉒𧣆𧧹𢅮𥽤𩶐𩎾𑈩숴𬉹𡮭𩥥𒁨䇅𐂈𗗩𬏔𡔩𣱽ፖ𦃆𧮽𬠔ϫ慺뫣𦦮觜𢤟𦄌鉋𓉼𪆢潖녓ὦ𦾊𐛫𬍔𢖅ࢤ𘜀零𖣊ඝ𗥒𪊀𠚱𩬞𣡠𘍩氝ɡ汢𧵮𬲈词땵𧷬偮靹𦍼𘙬혎𗊯𣣨禒𘗫蒒䤗呼𡽴𠻁壁𨁵𨋅𩰒툐妢몇悪컔ܨ㣤𘖐𥚋𠛇𐝈쭶𦚉믚푧𧼳𘎖𖡘𬡺𧀊𝓻𬨗𩬞ᵥ𦮤𔑺𥻌䩟𥹤𪭯꿥𫵚𐒰𦀍鰾𥇞쑷𐛊茍鹘ᴻ𩍼躯𧱤𣐜㮹𘈰𠬓𧺂𫼗𖡠𪲾嵙𤶗𗞧譺𠹿𣎱𠼨𧬠䩿𠔝𫘡儯봂𩘗𬃬鐵𤅔杉𥃂䋂ן閗𐰃嫪𢾏𗳪贲焝춟𬘚𣍩ㅙ𤷆섯"
  }
}
201
{
  "select_all_types": [],
  "description": "鶷𧰁홾힑𫍈襛𡮉ˈ𤟷𤻘欫𠎒饐땸𠄥䓵𧅃𛲇𫼐罼𫚡𫵾𩐽씼𐃴𘨋娛注𡍨𗨶횚𧸭䶏쑍ꌞ𪣰稗襅椨呔𗟺𒆯𫟼긼𩠺㽘𬸋𗒜𗂛𤣁폩𨥎𫜢𫙁憲𨡠獩𧲢𨜷㽪蘺뀑𤠽𝘵𪍦𬈎𩵪𫾰𥒭晳𣲧𪂽𡒲𢖥𨤛𗼊鑔𘈌𐑢𡎠𣇻桐𥎜𥺮𨼯돱𤢖뗖ᅌ蛧𨹳吡佔𪭨𡩲𧰐𠜞𪜁𝓖𫢹𩥩𩔣씵𢞊𐭣큂絠湜𦺙𠶽㑡㝚𠭰撓𢍱𪘑츣𗬩𫫛𫧚𤠜뙔𩬴礞ꡜ𣏉㖋쑫𥓀𢘇𠱤𡖵㙤𦵻𬙶𝜄惾𩉒𧣆𧧹𢅮𥽤𩶐𩎾𑈩숴𬉹𡮭𩥥𒁨䇅𐂈𗗩𬏔𡔩𣱽ፖ𦃆𧮽𬠔ϫ慺뫣𦦮觜𢤟𦄌鉋𓉼𪆢潖녓ὦ𦾊𐛫𬍔𢖅ࢤ𘜀零𖣊ඝ𗥒𪊀𠚱𩬞𣡠𘍩氝ɡ汢𧵮𬲈词땵𧷬偮靹𦍼𘙬혎𗊯𣣨禒𘗫蒒䤗呼𡽴𠻁壁𨁵𨋅𩰒툐妢몇悪컔ܨ㣤𘖐𥚋𠛇𐝈쭶𦚉믚푧𧼳𘎖𖡘𬡺𧀊𝓻𬨗𩬞ᵥ𦮤𔑺𥻌䩟𥹤𪭯꿥𫵚𐒰𦀍鰾𥇞쑷𐛊茍鹘ᴻ𩍼躯𧱤𣐜㮹𘈰𠬓𧺂𫼗𖡠𪲾嵙𤶗𗞧譺𠹿𣎱𠼨𧬠䩿𠔝𫘡儯봂𩘗𬃬鐵𤅔杉𥃂䋂ן閗𐰃嫪𢾏𗳪贲焝춟𬘚𣍩ㅙ𤷆섯",
  "created_at": "2021-05-18 15:54:06 UTC",
  "updated_at": "2021-05-18 15:54:06 UTC",
  "ancestry": null,
  "parent_id": null,
  "parent_name": null,
  "id": 447626484,
  "name": "loc220",
  "title": "loc220",
  "users": [],
  "smart_proxies": [],
  "subnets": [],
  "compute_resources": [],
  "media": [],
  "ptables": [],
  "provisioning_templates": [],
  "domains": [],
  "realms": [],
  "environments": [],
  "hostgroups": [],
  "organizations": [],
  "hosts_count": 0,
  "parameters": []
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

location
required

Validations:

  • Must be a Hash

location[name]
optional

Validations:

  • Must be a String

location[description]
optional , nil allowed

Validations:

  • Must be a String

location[user_ids]
optional , nil allowed

User IDs

Validations:

  • Must be an array of any type

location[smart_proxy_ids]
optional , nil allowed

Smart proxy IDs

Validations:

  • Must be an array of any type

location[compute_resource_ids]
optional , nil allowed

Compute resource IDs

Validations:

  • Must be an array of any type

location[medium_ids]
optional , nil allowed

Medium IDs

Validations:

  • Must be an array of any type

location[ptable_ids]
optional , nil allowed

Partition template IDs

Validations:

  • Must be an array of any type

location[provisioning_template_ids]
optional , nil allowed

Provisioning template IDs

Validations:

  • Must be an array of any type

location[domain_ids]
optional , nil allowed

Domain IDs

Validations:

  • Must be an array of any type

location[realm_ids]
optional , nil allowed

Realm IDs

Validations:

  • Must be an array of any type

location[hostgroup_ids]
optional , nil allowed

Host group IDs

Validations:

  • Must be an array of any type

location[environment_ids]
optional , nil allowed

Environment IDs

Validations:

  • Must be an array of any type

location[subnet_ids]
optional , nil allowed

Subnet IDs

Validations:

  • Must be an array of any type

location[parent_id]
optional , nil allowed

Parent ID

Validations:

  • Must be a number.

location[ignore_types]
optional , nil allowed

List of resources types that will be automatically associated

Validations:

  • Must be an array of any type

location[organization_ids]
optional , nil allowed

Associated organization IDs

Validations:

  • Must be an array of any type

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.