Infraon API Guide
Product DocsSchemaAuthentication
  • Welcome
    • Base URL
    • Authorization
    • Responses
  • Modules
    • Schema
    • Authentication
    • Announcement
    • API Registration
    • Async Tasks
    • BusinessRule
    • BusinessServiceConfiguration
    • Service Catalogue
    • CMDBBlacklistWhitelist
    • CMDBCategory
    • CMDBConsumables
    • Ux
    • CMDBSoftwareLicense
    • Cmdb
    • CMDBRelation
    • CMDBSoftware
    • ContractManagement
    • Department
    • Events
    • Field Configuration
    • IMACD
    • Knowledge Base
    • Leaves
    • Chat
    • Marketplace
    • APIViewSet
    • BeepViewSet
    • SMSviewset
    • Suppressedviewset
    • Organization Location
    • Partner
    • Predicted Events
    • Requester
    • Service Feasibility Requests
    • Role Profile
    • Tag
    • Service_outage
    • Teams
    • Telecom Settings
    • Trap Configurations
    • User Profile
    • Vendor Managemment
    • Association Events
    • Device Template
    • Discovery Configuration
    • Jobs
    • MIB Explorer
    • Seasonal Events
    • IPAM
    • Log Grok Pattern Configuration
    • Log Pipeline Configuration
    • Log Integraion
    • Log Search
    • CLI Download Jobs
    • Configuration Profiles
    • Configuration Policies
    • Configuration Rules
    • Configuration Search
    • Configuration Template
    • Configuration Trigger
    • Jobs Account Audit
    • Manage Vulnerabilities
    • OS Image Download
    • Rule Group
    • Configuration Upload Jobs
    • Work Flow Jobs
    • Change
    • Checklist
    • Incident
    • Problem
    • Release
    • Request Process
    • Task
    • Models
Powered by GitBook
On this page
  1. Modules

Organization Location

PreviousSuppressedviewsetNextPartner

Gets a organization location with the given id

get

This endpoint is used to fetch a organization location details in the current organization

Authorizations
Path parameters
idstringRequired
Responses
200Success
application/json
get
GET /ux/common/org/location/{id}/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": "text",
  "location_id": "text",
  "region": "text",
  "location_name": "text",
  "description": "text",
  "country": "text",
  "state": "text",
  "city": "text",
  "area": "text",
  "subarea": "text",
  "address": "text",
  "city_bb": "text",
  "pincode": "text",
  "landmark": "text",
  "latitude": 1,
  "longitude": 1,
  "district": "text",
  "address_type": "text",
  "is_ci": true,
  "base_radius": 1,
  "is_preconfigured": true
}

Deletes the organization location with given id

delete

This endpoint is used to delete an existing organization location for the current organization

Authorizations
Path parameters
idstringRequired
Responses
204
No response body
delete
DELETE /ux/common/org/location/{id}/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

get

API endpoint that allows users to be viewed or edited.

Authorizations
Responses
200Success
application/json
get
GET /ux/common/org/location/download_csv/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": "text",
  "location_id": "text",
  "region": "text",
  "location_name": "text",
  "description": "text",
  "country": "text",
  "state": "text",
  "city": "text",
  "area": "text",
  "subarea": "text",
  "address": "text",
  "city_bb": "text",
  "pincode": "text",
  "landmark": "text",
  "latitude": 1,
  "longitude": 1,
  "district": "text",
  "address_type": "text",
  "is_ci": true,
  "base_radius": 1,
  "is_preconfigured": true
}
get

API endpoint that allows users to be viewed or edited.

Authorizations
Responses
200Success
application/json
get
GET /ux/common/org/location/location_details/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": "text",
  "location_id": "text",
  "region": "text",
  "location_name": "text",
  "description": "text",
  "country": "text",
  "state": "text",
  "city": "text",
  "area": "text",
  "subarea": "text",
  "address": "text",
  "city_bb": "text",
  "pincode": "text",
  "landmark": "text",
  "latitude": 1,
  "longitude": 1,
  "district": "text",
  "address_type": "text",
  "is_ci": true,
  "base_radius": 1,
  "is_preconfigured": true
}
get

API endpoint that allows users to be viewed or edited.

Authorizations
Responses
200Success
application/json
get
GET /ux/common/org/location/team_location/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": "text",
  "location_id": "text",
  "region": "text",
  "location_name": "text",
  "description": "text",
  "country": "text",
  "state": "text",
  "city": "text",
  "area": "text",
  "subarea": "text",
  "address": "text",
  "city_bb": "text",
  "pincode": "text",
  "landmark": "text",
  "latitude": 1,
  "longitude": 1,
  "district": "text",
  "address_type": "text",
  "is_ci": true,
  "base_radius": 1,
  "is_preconfigured": true
}
  • GETGets a list of organization locations
  • POSTCreates a new location
  • GETGets a organization location with the given id
  • PUTEdits the organization location with given id
  • DELETEDeletes the organization location with given id
  • POST/ux/common/org/location/create-csv/
  • POST/ux/common/org/location/csv_cols/
  • GET/ux/common/org/location/download_csv/
  • GET/ux/common/org/location/location_details/
  • GET/ux/common/org/location/team_location/
  • POST/ux/common/org/location/upload-csv/

Gets a list of organization locations

get

This endpoint is used to fetch all the organization locations in the current organization

Authorizations
Responses
200Success
application/json
get
GET /ux/common/org/location/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
200Success
[
  {
    "id": "text",
    "location_id": "text",
    "region": "text",
    "location_name": "text",
    "description": "text",
    "country": "text",
    "state": "text",
    "city": "text",
    "area": "text",
    "subarea": "text",
    "address": "text",
    "city_bb": "text",
    "pincode": "text",
    "landmark": "text",
    "latitude": 1,
    "longitude": 1,
    "district": "text",
    "address_type": "text",
    "is_ci": true,
    "base_radius": 1,
    "is_preconfigured": true
  }
]

Creates a new location

post

This endpoint is used to save a new user for the current organization

Authorizations
Body
Other propertiesanyOptional
Responses
201
No response body
post
POST /ux/common/org/location/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 204

{
  "location_name": "JP Nagar",
  "country": "India",
  "address": "3rd floor",
  "state": "Karnataka",
  "city": "Bangalore",
  "area": "JP Nagar",
  "subarea": "3rd phase",
  "pincode": "574221",
  "description": "Branch office address"
}
201

No response body

No content

Edits the organization location with given id

put

This endpoint is used to edit an existing organization location for the current organization

Authorizations
Path parameters
idstringRequired
Body

Serializes organization location querysets.

idstringRead-onlyRequired
location_idstring · max: 25Required
regionstring · max: 100Optional
location_namestring · max: 256Optional
descriptionstring · max: 1000Optional
countrystring · max: 100Optional
statestring · max: 100Optional
citystring · max: 100Optional
areastring · max: 100Optional
subareastring · max: 100Optional
addressstring · max: 1000Optional
city_bbstring · max: 100Optional
pincodestring · max: 100Optional
landmarkstring · max: 100Optional
latitudenumber · floatOptional
longitudenumber · floatOptional
districtstring · max: 100Optional
address_typestring · max: 255Optional
is_cibooleanOptional
base_radiusnumber · floatOptional
is_preconfiguredbooleanOptional
Responses
200Success
application/json
put
PUT /ux/common/org/location/{id}/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 348

{
  "location_id": "text",
  "region": "text",
  "location_name": "text",
  "description": "text",
  "country": "text",
  "state": "text",
  "city": "text",
  "area": "text",
  "subarea": "text",
  "address": "text",
  "city_bb": "text",
  "pincode": "text",
  "landmark": "text",
  "latitude": 1,
  "longitude": 1,
  "district": "text",
  "address_type": "text",
  "is_ci": true,
  "base_radius": 1,
  "is_preconfigured": true
}
200Success
{
  "id": "text",
  "location_id": "text",
  "region": "text",
  "location_name": "text",
  "description": "text",
  "country": "text",
  "state": "text",
  "city": "text",
  "area": "text",
  "subarea": "text",
  "address": "text",
  "city_bb": "text",
  "pincode": "text",
  "landmark": "text",
  "latitude": 1,
  "longitude": 1,
  "district": "text",
  "address_type": "text",
  "is_ci": true,
  "base_radius": 1,
  "is_preconfigured": true
}
post

API endpoint that allows users to be viewed or edited.

Authorizations
Body

Serializes organization location querysets.

idstringRead-onlyRequired
location_idstring · max: 25Required
regionstring · max: 100Optional
location_namestring · max: 256Optional
descriptionstring · max: 1000Optional
countrystring · max: 100Optional
statestring · max: 100Optional
citystring · max: 100Optional
areastring · max: 100Optional
subareastring · max: 100Optional
addressstring · max: 1000Optional
city_bbstring · max: 100Optional
pincodestring · max: 100Optional
landmarkstring · max: 100Optional
latitudenumber · floatOptional
longitudenumber · floatOptional
districtstring · max: 100Optional
address_typestring · max: 255Optional
is_cibooleanOptional
base_radiusnumber · floatOptional
is_preconfiguredbooleanOptional
Responses
200Success
application/json
post
POST /ux/common/org/location/create-csv/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 348

{
  "location_id": "text",
  "region": "text",
  "location_name": "text",
  "description": "text",
  "country": "text",
  "state": "text",
  "city": "text",
  "area": "text",
  "subarea": "text",
  "address": "text",
  "city_bb": "text",
  "pincode": "text",
  "landmark": "text",
  "latitude": 1,
  "longitude": 1,
  "district": "text",
  "address_type": "text",
  "is_ci": true,
  "base_radius": 1,
  "is_preconfigured": true
}
200Success
{
  "id": "text",
  "location_id": "text",
  "region": "text",
  "location_name": "text",
  "description": "text",
  "country": "text",
  "state": "text",
  "city": "text",
  "area": "text",
  "subarea": "text",
  "address": "text",
  "city_bb": "text",
  "pincode": "text",
  "landmark": "text",
  "latitude": 1,
  "longitude": 1,
  "district": "text",
  "address_type": "text",
  "is_ci": true,
  "base_radius": 1,
  "is_preconfigured": true
}
post

API endpoint that allows users to be viewed or edited.

Authorizations
Body

Serializes organization location querysets.

idstringRead-onlyRequired
location_idstring · max: 25Required
regionstring · max: 100Optional
location_namestring · max: 256Optional
descriptionstring · max: 1000Optional
countrystring · max: 100Optional
statestring · max: 100Optional
citystring · max: 100Optional
areastring · max: 100Optional
subareastring · max: 100Optional
addressstring · max: 1000Optional
city_bbstring · max: 100Optional
pincodestring · max: 100Optional
landmarkstring · max: 100Optional
latitudenumber · floatOptional
longitudenumber · floatOptional
districtstring · max: 100Optional
address_typestring · max: 255Optional
is_cibooleanOptional
base_radiusnumber · floatOptional
is_preconfiguredbooleanOptional
Responses
200Success
application/json
post
POST /ux/common/org/location/csv_cols/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 348

{
  "location_id": "text",
  "region": "text",
  "location_name": "text",
  "description": "text",
  "country": "text",
  "state": "text",
  "city": "text",
  "area": "text",
  "subarea": "text",
  "address": "text",
  "city_bb": "text",
  "pincode": "text",
  "landmark": "text",
  "latitude": 1,
  "longitude": 1,
  "district": "text",
  "address_type": "text",
  "is_ci": true,
  "base_radius": 1,
  "is_preconfigured": true
}
200Success
{
  "id": "text",
  "location_id": "text",
  "region": "text",
  "location_name": "text",
  "description": "text",
  "country": "text",
  "state": "text",
  "city": "text",
  "area": "text",
  "subarea": "text",
  "address": "text",
  "city_bb": "text",
  "pincode": "text",
  "landmark": "text",
  "latitude": 1,
  "longitude": 1,
  "district": "text",
  "address_type": "text",
  "is_ci": true,
  "base_radius": 1,
  "is_preconfigured": true
}
post

API endpoint that allows users to be viewed or edited.

Authorizations
Body

Serializes organization location querysets.

idstringRead-onlyRequired
location_idstring · max: 25Required
regionstring · max: 100Optional
location_namestring · max: 256Optional
descriptionstring · max: 1000Optional
countrystring · max: 100Optional
statestring · max: 100Optional
citystring · max: 100Optional
areastring · max: 100Optional
subareastring · max: 100Optional
addressstring · max: 1000Optional
city_bbstring · max: 100Optional
pincodestring · max: 100Optional
landmarkstring · max: 100Optional
latitudenumber · floatOptional
longitudenumber · floatOptional
districtstring · max: 100Optional
address_typestring · max: 255Optional
is_cibooleanOptional
base_radiusnumber · floatOptional
is_preconfiguredbooleanOptional
Responses
200Success
application/json
post
POST /ux/common/org/location/upload-csv/ HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 348

{
  "location_id": "text",
  "region": "text",
  "location_name": "text",
  "description": "text",
  "country": "text",
  "state": "text",
  "city": "text",
  "area": "text",
  "subarea": "text",
  "address": "text",
  "city_bb": "text",
  "pincode": "text",
  "landmark": "text",
  "latitude": 1,
  "longitude": 1,
  "district": "text",
  "address_type": "text",
  "is_ci": true,
  "base_radius": 1,
  "is_preconfigured": true
}
200Success
{
  "id": "text",
  "location_id": "text",
  "region": "text",
  "location_name": "text",
  "description": "text",
  "country": "text",
  "state": "text",
  "city": "text",
  "area": "text",
  "subarea": "text",
  "address": "text",
  "city_bb": "text",
  "pincode": "text",
  "landmark": "text",
  "latitude": 1,
  "longitude": 1,
  "district": "text",
  "address_type": "text",
  "is_ci": true,
  "base_radius": 1,
  "is_preconfigured": true
}