Update Working Hours

Updated by RM

Protocol

HTTP 1.1

Url

https://secure.telecomstats.co.uk/IVRAPI/Scripts/TODUpdate.aspx

Port

443

Method

GET or POST

Required Parameters

Name

Type

Values

ClientID

Integer

"1234"

Username

String

"MyUsername"

Password

String

"MyPassword"

DDI

String

"08445567676"

ID

Integer

"1234"

StartTime

String

"0700"

EndTime

String

"1700"

Optional Parameters

Name

Type

Values

Test

String

"True" or "False"

Error Returns

Errors will be returned with the status code HTTP 500:

Error Code

Response

Explanation

1

Authentication failed.

An invalid combination of username, password or clientid was supplied.

3

Invalid parameter '[parameter name]'

A parameter was supplied either incorrectly or in the wrong format.

5

Missing parameter '[parameter name]'

A parameter was not supplied or was supplied empty.

11

Invalid ID.

The ID supplied was not found or associated with the account.

12

Invalid Times

Either the start or end time is invalid.

14

Invalid DDI/ID

The ID does not match the given DDI.

15

DDI Is A Clone

The DDI is a clone of another DDI.

OK Returns

OK responses will be returned with the status code HTTP 200 and will contain the unique ID of the record that has been updated.


How did we do?