Skip to main content

URI template component requirements

Suggest edit Updated on January 29, 2021

The variable and literal components of a URI template require specific formatting. Apply these requirements to URI templates when you define different service REST rules for distinct resource URIs.

The following requirements apply to URI template components:

  • The first component in a URI template must be a literal component.
  • Variable components must start with '{' and end with '}', and these characters cannot be nested.
  • Variable components cannot be empty.
  • A component cannot contain both literal and variable syntax, for example, api_{id}.
  • Components cannot start with special characters except for '{', '}', and '/'.
  • Components cannot contain reserved characters such as '?' or '#'.
  • Regular expression syntax is not supported.
Did you find this content helpful? YesNo

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us