Add/Update relations

<< Click to Display Table of Contents >>

Navigation:  API requests >

Add/Update relations

API request

Nama: UpdateRelation

 

API request structure

<?xml version="1.0" encoding="utf-8"?>

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Header/>

<S:Body>

  <ns2:UpdateRelation xmlns:ns2="api.timewriter.nl">

    <securityToken></securityToken>

    <relation>

      <id1></id1>

      <id2></id2>

      <relationType></relationType>

    </relation>

  </ns2:UpdateRelation>

</S:Body>

</S:Envelope>

 

Explanation

Tag/field name

Type

Remark

Description

securityToken

string

mandatory

securityToken obtained at log in

relation

Relation

mandatory

see Relation

 

 

API response

Name: UpdateRelationResponse

 

API response structure

<?xml version="1.0" encoding="utf-8"?>

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Header/>

<S:Body>

  <ns2:UpdateRelationResponse xmlns:ns2="api.timewriter.nl">

    <result>

      <error></error>

      <errorMessage></errorMessage>

      <relation>

        <id1></id1>

        <id2></id2>

        <relationType></relationType>

      </relation>

    </result>

  </ns2:UpdateRelationResponse>

</S:Body>

</S:Envelope>

 

Explanation

Tag/field name

Type

result

RequestResult

Tag/field name

Type

Description

error

boolean

false if there are no errors, true if there are errors

errorMessage

string

error message, only used when error = true

relation

Relation

see Relation