Skip to content

Conversation

@stepskop
Copy link
Contributor

@stepskop stepskop commented Dec 8, 2025

Adds missing actorPermissionLevel to the Actor's OpenAPI spec.


Note

Adds actorPermissionLevel enum field to Actor and UpdateActorRequest schemas and includes it in Update Actor request/response examples.

  • OpenAPI Schemas:
    • components/schemas/actors/Actor.yaml: Add actorPermissionLevel (LIMITED_PERMISSIONS | FULL_PERMISSIONS, nullable) with example.
    • components/schemas/actors/UpdateActorRequest.yaml: Add actorPermissionLevel (same enum/nullable) with example.
  • Paths:
    • paths/actors/acts@{actorId}.yaml (PUT Update Actor): Include actorPermissionLevel in request body example and response example.

Written by Cursor Bugbot for commit bb08633. Configure here.

@stepskop stepskop self-assigned this Dec 8, 2025
@stepskop stepskop requested a review from janbuchar as a code owner December 8, 2025 14:15
@stepskop stepskop added the adhoc Ad-hoc unplanned task added during the sprint. label Dec 8, 2025
@stepskop stepskop requested a review from fnesveda as a code owner December 8, 2025 14:15
@stepskop stepskop added the t-core-services Issues with this label are in the ownership of the core services team. label Dec 8, 2025
@apify-service-account
Copy link

Preview for this PR was built for commit bb08633 and is ready at https://pr-2135.preview.docs.apify.com!

@stepskop stepskop requested a review from barjin December 8, 2025 14:23
@apify-service-account
Copy link

Preview for this PR was built for commit 9fabbfa and is ready at https://pr-2135.preview.docs.apify.com!

Comment on lines 17 to 19
enum:
- LIMITED_PERMISSIONS
- FULL_PERMISSIONS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could probably be made into a reusable component, but not really worth it, I guess

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if we start autogenerating clients one day, it will be really helpful to have as much as possible in reusable components, so that we can link them e.g. to TypeScript constants easily.

Copy link
Member

@barjin barjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please resolve my comments and feel free to merge (approving now to make things faster)

Comment on lines 39 to 44
actorPermissionLevel:
type: string
enum:
- LIMITED_PERMISSIONS
- FULL_PERMISSIONS
example: LIMITED_PERMISSIONS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the indentation doesn't match the rest of the document

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

example: false
actorPermissionLevel:
type: string
nullable: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a description field with a simple text description (to both locations)? A few words and a link to docs would suffice really :)

Copy link
Member

@fnesveda fnesveda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, nothing to add to Jindra's and Honza's comments 🙂

@apify-service-account
Copy link

Preview for this PR was built for commit 50018ada and is ready at https://pr-2135.preview.docs.apify.com!

@apify-service-account
Copy link

Preview for this PR was built for commit 604a7354 and is ready at https://pr-2135.preview.docs.apify.com!

@apify-service-account
Copy link

Preview for this PR was built for commit bd8c424c and is ready at https://pr-2135.preview.docs.apify.com!

@stepskop
Copy link
Contributor Author

Extracted it to a component. Added description with the link to Actor permissions docs.

@stepskop stepskop merged commit a5a3bee into master Dec 12, 2025
10 checks passed
@stepskop stepskop deleted the docs/api-actor-permission-level branch December 12, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-core-services Issues with this label are in the ownership of the core services team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants