Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

REST API Create components and streams

  Hello Jazz community. 


I have a special requirement. I need Create a component with a stream in a specific project area. 
I mean: 
- First create a project area.
- Second create a component.
- and last create a stream. 

It's possible to do whit REST API? 
Or somebody has some example to do this? 

Thanks in advance. 

0 votes



2 answers

Permanent link

 This would require multiple APIs. E.g. creating a project area is not part of the reportable REST API and also not part of the OSLC API.

You can find the list of supported ELM APIs here: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding

0 votes


Permanent link

Hello again I'm trying to create the component. 


Here is my code, but is not working the response = 405.

Could you give other advice?? 

Project area id = _2asdsdknf+asdkm
headers =  {'OSLC-Core-Version': '2.0',
          'Accept': 'application/xml',
           'Content-Type': 'application/rdf+xml'}

components_url = 'https://jazz.server/rm/cm/resources/_2asdsdknf+asdkm/components'

            new_component = '''<component>
                    <dc:title>Component new</dc:title>
                    <rm:project rdf:resource="https:\/\/jjazz.server\/rm\/cm\/resources\/_2asdsdknf+asdkm" />
                </component>
            '''

            response =request.post(components_url, data=new_component, headers=headers, auth=("user','password)')

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,495
× 1,325
× 382

Question asked: Oct 12 '23, 7:38 p.m.

Question was seen: 1,224 times

Last updated: Oct 13 '23, 5:55 p.m.

Related questions
Confirmation Cancel Confirm