Create a new location. Returns the id and name of the new location. A campus needs an organization while multi-org is on (400 when missing, 403 HTTP response when a limited caller names one outside their reach) and takes the default organization otherwise; a sent organization that is archived returns 400 and an unknown one 404, multi-org on or off. Any other location type (a venue) takes the organization sent while multi-org is on, for every caller (403 HTTP response for one outside their reach; archived 400, unknown 404). With none sent it belongs to the caller's organization when their limit reaches exactly one, a caller whose limit reaches several gets 400, and anyone else's belongs to the default organization. While multi-org is off a venue ignores a sent organization and belongs to the default organization. A type from another list (such as a gender, or the location_types list itself) returns 400 with the message location_type_invalid_desc.
Required permission: Locations
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
401Authentication is required, or the Ocs-Api-Key header is missing or invalid.
