Title: Extend API response
Last modified: January 13, 2020

---

# Extend API response

 *  Resolved [lgousiou](https://wordpress.org/support/users/lgousiou/)
 * (@lgousiou)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/extend-api-response/)
 * Hi,
 * I am wondering if there is a way to extend request response for a gamipress API
   call by adding an additional parameter and in what way we can achieve it. What
   object_type can we use in register_rest_field function?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ruben Garcia](https://wordpress.org/support/users/rubengc/)
 * (@rubengc)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/extend-api-response/#post-12318731)
 * Hi [@lgousiou](https://wordpress.org/support/users/lgousiou/)
 * If you are referring to the GamiPress logs and user earnings
 * The register_rest_field function only will work with the WordPress standard object
   types, not with our custom ones
 * We use an in-house library to handle our custom tables that you can check here:
   
   [https://github.com/rubengc/CT](https://github.com/rubengc/CT) This library is
   developed to make it as extensible as possible so you can find several hooks 
   to change any endpoint workflow
 * Other option, and probable more simple, is to create your custom endpoint with
   the parameters and workflow you want
 * Best regards

Viewing 1 replies (of 1 total)

The topic ‘Extend API response’ is closed to new replies.

 * ![](https://ps.w.org/gamipress/assets/icon-256x256.png?rev=1699714)
 * [GamiPress - Gamification plugin to reward points, achievements, badges & ranks in WordPress](https://wordpress.org/plugins/gamipress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gamipress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gamipress/)
 * [Active Topics](https://wordpress.org/support/plugin/gamipress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gamipress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gamipress/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [extend](https://wordpress.org/support/topic-tag/extend/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ruben Garcia](https://wordpress.org/support/users/rubengc/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/extend-api-response/#post-12318731)
 * Status: resolved