<< Click to Display Table of Contents >> Navigation: API requests > Delete relations |
API request
Name: DeleteRelation
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:DeleteRelation xmlns:ns2="api.timewriter.nl"> <securityToken></securityToken> <id1></id1> <id2></id2> <relationType></relationType> </ns2:DeleteRelation> </S:Body> </S:Envelope> |
Explanation
Tag/field name |
Type |
Remark |
Description |
securityToken |
string |
mandatory |
securityToken obtained at log in |
id1 |
long |
mandatory |
aspect id |
id2 |
long |
mandatory |
aspect id or -1 |
relationType |
mandatory Must have a value from RelationType |
relation type |
Examples
This example will delete the relation of an employee with id 234567, who is authorized to create hour bookings for customer (aspect 1) with id 567890 (relationType AUTHORIZATION-IT_MED-IT_AT1):
|
API response
Name: DeleteRelationResponse
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:DeleteRelationResponse xmlns:ns2="api.timewriter.nl"> <result> <error></error> <errorMessage></errorMessage> <success></success> </result> </ns2:DeleteRelationResponse> </S:Body> </S:Envelope> |
Explanation
Tag/field name |
Type |
||||||||||||
result |
RequestResult
|