Legacy Dev Forum Posts

 View Only

Sign Up

Maximum size of API fields

  • 1.  Maximum size of API fields

    Posted 06-05-2025 18:17

    vmh.falcao | 2020-06-25 13:00:15 UTC | #1

    Hi,

    I would like to know if there is any documentation for the Purecloud API that contains the maximum size of each field.

    Currently on the page https://developer.mypurecloud.com it only shows the field types, but does not show the maximum field size.

    Regards, Victor


    tim.smith | 2020-06-25 19:51:00 UTC | #2

    There generally aren't field limits. If there are, they should be documented as such and the request will be met with a 400 bad request response if you exceed the limit.


    vmh.falcao | 2020-06-25 20:59:55 UTC | #3

    Hi Smith,

    I am collecting the data in the API and storing it in an SQL database. I would like to know if you have any documentation with the size of the fields for me to do the modeling in the database. I cannot use maximum values for optimization reasons in SQL.


    tim.smith | 2020-06-26 13:58:26 UTC | #4

    My response applies to API response properties as well. There aren't fixed lengths for fields. You may be able to clamp down certain strings, like GUIDs, but the majority of strings in contracts are unformatted and may have any length of data. I would suggest doing some analysis on the data you're intending to store to find reasonable maximums for your database. Be sure to have a robust process that can gracefully handle values larger than your table accepts and has a mechanism to notify you of such failures so you can alter the offending columns accordingly.


    system | 2020-07-27 13:58:29 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 8112