[API] Listing Attachments getting 403

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • XYZT
    Junior Member
    • Jun 2024
    • 1

    [API] Listing Attachments getting 403

    Hi, i wanted to list attachments with some filters:

    Code:
    http://domain/api/v1/Attachment?
    where[0][type]=in&
    where[0][attribute]=id&
    where[0][value][]=667ae1cfcaa0e4b79&
    where[0][value][]=667ae1cfcaa0ea496&
    maxSize=5&
    offset=0&
    orderBy=createdAt&
    order=desc

    I have ApiUser with a Role where everything is enabled.
    I am sending the request with "X-Api-Key: <api-key>" header correctly.

    Other API request works correctly, but this particular case doesn't, because i am getting 403.

    Is Attachment listing disabled for API or am i just missing something?
  • yuri
    Member
    • Mar 2014
    • 8627

    #2
    Hi,

    The Attachment list view is available only for admin users.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...