How to add a custom REST field to limit data when fetching?

How to add a custom REST field to limit data when fetching?

error code: 523