How can i get Organization detail fields wit API call?
Asked by Huzur Polat:

I try it with the following API Call

<https://developer.atlassian.com/cloud/customer-service-management/rest/v1/api-group-organization/#api-api-v1-organization-details-get>

![call.jpg](/t5/image/serverpage/image-id/344970i62E9D36381917AF3/image-dimensions/340x392?v=v2 "call.jpg")

![token.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/344972i195EE769FDEAF4C0/image-size/large?v=v2&px=999 "token.jpg")

<https://apiURL.atlassian.net/rest/api/v1/organization>

![organisationdetails.jpg](/t5/image/serverpage/image-id/344971i068052042295ACB8/image-dimensions/439x613?v=v2 "organisationdetails.jpg")

I want to import a list auf Organizations from a CSV File. For this i need know the field for Mapping

I am looking for a way to do this with the API


Answers:
author: Marc - Devoteam
body: Hi [@Huzur Polat](/t5/user/viewprofilepage/user-id/4593876)

You can create organizations via the API and you can add organizations details via the API on an organization.

This can't be done in a single API call.

Organizations can be created via the API: [api-rest-servicedeskapi-organization-post](https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-post)

Organization details can be also created via the API: [api-api-v1-organization-details-post](https://developer.atlassian.com/cloud/customer-service-management/rest/v1/api-group-organization/#api-api-v1-organization-details-post)

comments: author: Huzur Polat
body: hey [@Mar](/t5/user/viewprofilepage/user-id/2927221) does this endpoint work for you?

<https://XXXXXX.atlassian.net/api/v1/organization/details>

```
curl --location 'https://XXXX.atlassian.net/api/v1/organization/details' \ --header 'Accept: application/json' \ --header 'Authorization: Basic XXXX' \ --header 'Cookie: atlassian.xsrf.token=74dfc9dbsbb82b852fb8912fa66e89f9eb3108513_lin'
```

<https://developer.atlassian.com/cloud/customer-service-management/rest/v1/api-group-organization/#api-api-v1-organization-details-get>

do i call the right URL?


author: Marc - Devoteam
body: Hi [@Huzur Polat](/t5/user/viewprofilepage/user-id/4593876)

The composition of the call should be:

<https://api.atlassian.com/jsm/csm/cloudid/cloudid-number>\>/api/v1/organization/\<organization_id\>

Cloud id number can be found via: [https://confluence.atlassian.com/jirakb/how-to-find-cloud-site-id-1272283178.html#:\~:text=Solution,atlassian.net%2F_edge%2Ftenant_info](https://confluence.atlassian.com/jirakb/how-to-find-cloud-site-id-1272283178.html#:~:text=Solution,atlassian.net%2F_edge%2Ftenant_info)


author: Joseph Chung Yin
body: [@Huzur Polat](/t5/user/viewprofilepage/user-id/4593876) -

Although I have not use REST APIs to set organization details, and I believe currently it is not possible to do so. You can use REST APIs to create new organization and pull organization details.

Take a look at the following posting - <https://community.atlassian.com/t5/Jira-Service-Management/Are-there-any-API-requests-available-for-organization-detail/qaq-p/2560213>

Hope this helps.

Best, Joseph Chung Yin


Tags: cloud

jira-service-management

jira-service-management-cloud