Community
BIM 360 API Forum
Welcome to Autodesk’s BIM 360 API Forums. Share your knowledge, ask questions, and explore popular BIM 360 API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to extract Job Number of a project

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
405 Views, 2 Replies

How to extract Job Number of a project

Is there any way to extract Job Number of a project using the BIM 360 Field REST API?  We tried using "api/projects" call, but the Job Number was missing in the JSON result.  

2 REPLIES 2
Message 2 of 3
keith.white
in reply to: Anonymous

You need to get the specific Project Id from the list of projects, then make a call to the /api/project method and pass the Project Id value along with a ticket to get the information specific to that project.  In this return you will get a value for "identifier" which is the project number.

 

Keith



Keith White

Principal Solution Architect, Autodesk Consulting
Message 3 of 3
Mohammad_Adil
in reply to: Anonymous

Following CURL example will output required job_number

curl -v 'https://developer.api.autodesk.com/hq/v1/accounts/e3d5ef8d-5c37-4b9d-925d-1e6d24753ace/projects?limit=1&offset=0&sort=name' \
  -H 'Authorization: Bearer 9ezBnx9Rd5D1xG4KMt6b72T4w0MG'

Example RESPONSE

[
  {
    "id": "aca11a7a-bd17-47cd-ab99-6548d0e6fe25",
    "account_id": "e3d5ef8d-5c37-4b9d-925d-1e6d24753ace",
    "name": "construction_project",
    "start_date": "2015-05-02",
    "end_date": "2016-04-03",
    "project_type": "office",
    "value": 3000.0,
    "currency": "USD",
    "status": "pending",
    "job_number": "0219-01",
    "address_line_1": "The Fifth Avenue",
    "address_line_2": "#301",
    "city": "New York",
    "state_or_province": "New York",
    "postal_code": "10011",
    "country": "United States",
    "business_unit_id": "c17e6837-96cd-4839-868e-051a2ad65d28",
    "timezone": "America/New_York",
    "language": "en",
    "construction_type": "Renovation",
    "contract_type": "Design-Bid",
    "last_sign_in": null,
    "created_at": "2016-04-05T07:26:20.858Z",
    "updated_at": "2016-04-05T07:31:26.290Z"
  }
]

Details in this link GET projects | BIM 360 API | Autodesk Forge

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report