API "Create Note" on custom entity fails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fernando.giacomino
    Junior Member
    • Jul 2022
    • 23

    API "Create Note" on custom entity fails

    I want to add some note to stream of certain records in a custom entity, via api.
    The example in https://docs.espocrm.com/development/api/stream/ works right for original entities like Task or Case, but return a 403 error in my custom entity.
    Is an entity of type 'event' and role permissions are ok for api agent (maybe some field 'read only'?).

    msg.payload = {"parentId":"63c543711ff192376","parentType":"P edi do","post":"This is a test","data":{},"type":"Post"};

    connection: "close"
    x-status-reason: "No create access."
    statusCode: 403​

    In fact same records are actually created and modified by API, so I don't think is some permissions issue.
    Last edited by fernando.giacomino; 01-16-2023, 01:25 PM.
  • Kharg
    Senior Member
    • Jun 2021
    • 410

    #2
    Can you upload a pic of the role permissions?

    Comment

    • fernando.giacomino
      Junior Member
      • Jul 2022
      • 23

      #3
      wow what a fool! Stream permission is set to Own, not All! That is fast, jaja. It works right. Thanks!



      Comment

      • Kharg
        Senior Member
        • Jun 2021
        • 410

        #4
        Glad I could be of help!

        Comment

        Working...