Announcement

Collapse
No announcement yet.

API "Create Note" on custom entity fails

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

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

    Comment


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



      Comment


      • #4
        Glad I could be of help!

        Comment

        Working...
        X