It's all about the answers!

Ask a question

Error while creating link between requirements in DNG using PUT method


Monali Jambhulkar (841426) | asked Oct 01 '20, 4:54 a.m.

 Hello All


We are trying to create link between Requirements through API, following reference article  https://jazz.net/library/ <wbr> article/1197  -> Adding and removing links section, 
I am getting an error of Precondition failed while creating link between requirements.


<rdf:RDF
    xmlns:rdf="http://www.w3. <wbr> org/1999/02/22-rdf-syntax-ns#"
    xmlns:err="http://jazz. <wbr> net/xmlns/prod/jazz/ <wbr> foundation/1.0/">
    <rdf:Description>
        <err:detailedMessage r <wbr> df:datatype="http://www.w3. <wbr> org/2001/XMLSchema#string"
    >com.ibm.rdm.fronting. <wbr> server.exception. <wbr> PreconditionFailedException</e <wbr> rr:detailedMessage>
        <err:errorMessage rdf: <wbr> datatype="http://www.w3.org/ <wbr> 2001/XMLSchema#string"
    >Precondition Failed</err: <wbr> errorMessage>
        <err:errorStatus rdf: <wbr> datatype="http://www.w3.org/ <wbr> 2001/XMLSchema#long"
    >412</err:errorStatus>
    </rdf:Description>
</rdf:RDF> 

This is I am trying through PostMan..

Can you Please suggest me above error.

Thanks
Monali


Comments
Ian Barnard commented Oct 01 '20, 11:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 Are you copying the etag from GET of the artifact into the PUT? This is required to ensure you're updating the same version as you got.


Ian Barnard commented Oct 01 '20, 11:31 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Also, what type of link are you trying to add?

Be the first one to answer this question!


Register or to post your answer.