SOAP WebService : addResource

 

Creates a new resource.

Query

 

Parameter

Type

apikey

String

resourceModel

String

attributes

EntityInfo []

 

apikey

The user’s API key (must be sent in all the queries). Accesses the WebService for a given user and planner.

resourceModel

Name of the dimension

attributes

List of the attributes used to create the event.

Response

 

Attribute

Type

addResourceResponse

WSResult

 

addResourceResponse

The response is made up of a WSResult structure containing an “error” field (error code) and a “message” field (associated message).

In the event of a success, the error code is 0.

In the event of a failure, the error code is >0 and the message indicates the nature of the error encountered.

error

message

0

UID of the resource

1

Invalid session : apikey

2

Invalid resource model : resourceModel

3

Invalid attribute : attribute

4 The ‘Single headings’ of the dimension are not fully defined
5 The resource already exists
6 Invalid data

7

Create KO

 

 

Data types

 

The EntityInfo structure is made up of the following two fields:

Field

Type

Description

entityName

String

Attribute name

entityValue

String

Attribute value

The WSResult structure is made up of the following two fields:

Field

Type

Description

error

int

Error code

message

String

Error message

Print Friendly, PDF & Email
1 Etoile2 Etoiles3 Etoiles4 Etoiles5 Etoiles (No vote)
Loading...
Consulting training

Need training?

Use our consulting services!