---
title: "RESTItems"
id: "restitems"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/restitems"
updated: 2026-12-01T00:43:03Z
---

# RESTItems

## Description

RESTItems object enables the user to get and set definitions as well as elements for the RESTful configuration items.

 ## Object Functions

getDefinition()
Description

Gets the RESTful definition.
 
Syntax

**getDefinition()**

* Parameters

None

* Returns

[RESTDefinition](/articles/user-manual/RESTDefinition) definition - The RESTful definition.

* Scope

All

getElement()
Description

Gets the RESTful element.
 
Syntax

**getElement()**

* Parameters

None

* Returns

[WSElement](/articles/user-manual/WS-Element) element - The RESTful element.

* Scope

All

setDefinition(definition)
Description

Sets the RESTful definition.
 
Syntax

**setDefinition(definition)**

* Parameters

[RESTDefinition](/articles/user-manual/RESTDefinition) definition - The RESTful definition.

* Returns

Nothing

* Scope

All

setElement()
Description

Sets the RESTful element.
 
Syntax

**setElement(element)**

* Parameters

[WSElement](/articles/user-manual/WS-Element) element - The RESTful element.

* Returns

Nothing

* Scope

All

getVariable()
Description

Gets the WS variable.
 
Syntax

**getVariable(variable)**

* Parameters

None

* Returns

[WSVariable](/articles/user-manual/WS-Variable) variable - The web service variable to set for.

* Scope

All

setVariable(variable)
Description

Sets the WS variable.
 
Syntax

**setVariable(variable)**

* Parameters

[WSVariable](/articles/user-manual/WS-Variable) variable - The web service variable to set for.

* Returns

Nothing

* Scope

All

 © Sepasoft. All rights reserved. 
 [Send feedback](mailto:support@clickhelp.com) on this topic to Sepasoft.