You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The schedule API provides functionality that allows a administrator to add, delete or update schedules

List schedules

Lists all the schedules configured in the Aspire

GET /aspire_api/schedule

Query String Parameters

NameTypeRequiredDescription
typestringOptionalFilter returned schedules to only those with the given type
descriptionstringOptionalFilter returned schedules to only those whose description matches the given expression

Response

{
  "schedule": [{
    "id": "AAABcID5GBc=",
    "type": "filesystem",
    ...
  },
  {
    "id": "AAABcIueWUc=",
    "type": "filesystem",
    ...
  }],
  "message": "optional response message"
}

Status

Response codeDescription
200Success




Get a single schedule

Get information about a single schedule configured in Aspire

GET /aspire_api/schedule?id=:id

GET /aspire_api/schedule/:id

Query String and Path Parameters

NameTypeRequiredDescription
idstringRequiredThe id of the schedule to return

Response

{
  "schedule": {
    "id": "AAABcID5GBc=",
    "type": "filesystem",
    ...
 },

  "message": "optional response message"
}

Status

Response codeDescription
200Success
404The given schedules id was not found




Add schedule(s)

Add one or more schedules to Aspire

POST /aspire_api/schedule

Request Body Parameters

NameTypeRequiredDescription
typestringRequiredThe type of schedule to add
descriptionstringOptionalAn optional description of the schedule

Other parameters passed in the request body will depend on the type of schedule being created - those required by Documentum will be different from those required by SharePoint. Some candidates are shown below

NameDescription
domainAn Active Directory/LDAP domain
usernameA username
passwordA password
emailA user email address
APIkeyAn API key
tokenan access token

Examples

Add a single schedule

{
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
}

Add multiple schedules

[{
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
},
{
  "type": "sharepoint"
  "description": "SP Online"
  ...
}]

Response

{
  "schedule": [{
    "id": "AAABcID5GBc=",
    "type": "filesystem"
    "description": "Europe Net Appliance"
    ...
   },
   {
    "id": "AAABcIueWUc=",
    "type": "sharepoint"
    "description": "SP Online"
    ...
  }],
  "message": "optional response message"
}

Status

Response codeDescription
201Created
406Not acceptable - there was an issue validating the input




Update schedule(s)

Update one or more schedules in Aspire. Updates will be treated as partial updates rather than overwrites. If a field is not present in the input, any previous value will remain after the update. If you wish to "delete" a value, pass a value of null

PUT /aspire_api/schedule

Request Body Parameters

NameTypeRequiredDescription
idstringRequiredThe identifier of the schedule to update
typestringRequiredThe type of schedule
descriptionstringOptionalAn optional description of the schedule

Other parameters passed in the request body will depend on the type of schedule being created - see Add schedule(s) above

Examples

Update a single schedule

{
  "id": "AAABcID5GBc=",
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
}

Update multiple schedules

[{
  "id": "AAABcID5GBc=",
  "type": "filesystem"
  "description": "Europe Net Appliance"
  ...
},
{
  "id": "AAABcIueWUc=",
  "type": "sharepoint"
  "description": "SP Online"
  ...
}]

Response

{
  "schedule": [{
    "id": "AAABcID5GBc=",
    "type": "filesystem"
    "description": "Europe Net Appliance"
    ...
   },
   {
    "id": "AAABcIueWUc=",
    "type": "sharepoint"
    "description": "SP Online"
    ...
  }],
  "message": "optional response message"
}

Status

Response codeDescription
201Created
404Not found - a given schedule identifier was not found
406Not acceptable - there was an issue validating the input




Delete schedule(s)

Delete one or more schedules from Aspire.

DELETE /aspire_api/schedule?id=:id

DELETE /aspire_api/schedule/:id

DELETE /aspire_api/schedule

Query String, Path and Request Body Parameters

NameTypeRequiredDescription
idstringRequiredThe identifier(s) of the schedule(s) to delete

Examples

Delete a single schedule

{
  "id": "AAABcID5GBc="
}

Delete multiple schedules

[{
  "id": "AAABcID5GBc="
},
{
  "id": "AAABcIueWUc="
}]

Delete multiple schedules (alternative form)

{
  "id": ["AAABcID5GBc=", "AAABcIueWUc="]
}

Response

{
  "message": "optional response message"
}

Status

Response codeDescription
200Success
404Not found - a given schedule identifier was not found
406Not acceptable - there was an issue validating the input
  • No labels